package com.angel.email.configuration.builders.impl.aol;

import com.angel.common.keyValue.KeyValueResult;
import com.angel.common.keyValue.impl.KeyValueImpl;
import com.angel.common.keyValue.impl.KeyValueResultImpl;
import com.angel.email.account.AccountInformation;
import com.angel.email.configuration.builders.OutgoingEmailConfigurationBuilder;
import com.angel.email.constants.EmailPropertyConstants;

/**
 *
 * @author William
 *
 */
public class AOLOutgoingEmailConfigurationBuilder extends OutgoingEmailConfigurationBuilder{

	public AOLOutgoingEmailConfigurationBuilder(AccountInformation accountInformation){
		super(accountInformation);
	}
	
	public KeyValueResult buildOutgoingEmailConfiguration() {
		KeyValueResult result = new KeyValueResultImpl();

		result.addKeyValue(new KeyValueImpl(EmailPropertyConstants.EMAIL_OUTGOING_URL, "smtp.aol.com"));
		//Port Number ?? result.addKeyValue(new KeyValueImpl(EmailPropertyConstants.EMAIL_OUTGOING_PORT, "465"));
		/** For incoming google email, it must enable SSL socket factory. */
		//result.addKeyValue(new KeyValueImpl(PopEmailPropertyConstants.POP3_SOCKET_FACTORY_CLASS, "javax.net.ssl.SSLSocketFactory"));
		return result;
	}


}
